<%@ page contentType="text/html; charset=UTF-8" %> 
<%@page import="net.zhnb.util.*"%>
<%@ page import="net.zhnb.bean.*"%>
<%@page import="java.util.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<jsp:include page="adminImport.jsp"/>
</head>
<% Shower shower =  (Shower) request.getAttribute("shower"); 
	List<Room> roomList =  (ArrayList<Room>) request.getAttribute("roomList"); 
%>

<script>
	function checkForm(){
		if($("#showername").val()==''){
			alert("请输入展位名称!");
			return false;
		}
	}
</script>

<body>

<a href="<%=Constants.URL %>/admin/showerManage">返回</a><br/><br/>

<form action="<%=Constants.URL %>/admin/showerModi" method="post" onsubmit="return checkForm()">
	<input type="hidden" name="id" id="id" value="<%=shower.getId()%>"/>
	展位名称<font color="red">*</font>:<input type="input" name="showername" id="showername" value="<%=shower.getShowername()%>"/><br/>
	所属场馆:<select name="roomid" id="roomid">
				<%for(Room room :roomList){ %>
					<option value="<%=room.getId()%>" <%=shower.getRoomId().compareTo(room.getId())==0?"selected":""%>><%=room.getRoomname()%></option>
				<%} %>
			</select><br/>
	<input type="submit" value="修改"/>
</form>

</body>
</html>